package com.design.factory.complex;


import com.design.factory.common.service.MeatPiza;
import com.design.factory.common.service.OrangePizza;
import com.design.factory.common.service.Pizza;

/**
 * @author zhengzihong
 * @version 1.0.0
 * @date 2018/9/13
 * @Description
 */
public class TomPizzaStore extends PizzaStore {
    @Override
    public Pizza createPizza(String  type){
        Pizza pizza = null;
        if("meat".equals(type)){
            pizza = new MeatPiza();
        }else if("orange".equals(type)){
            pizza = new OrangePizza();
        }
        return pizza;
    }
}
